#include <stdio.h>

int main() {
    int age = 18;
    printf("Hello %s,you are %d years old\n","Bob",age);//%s代表一个字符串
    int i = 1001;
    float f = 98.1;
    printf("student number = %5d,score = %5.2f\n",i,f);
    i = 10021;
    f = 98.21;
    printf("student number = %5d,score = %5.2f\n",i,f);//最长的字符串数量
    i = 32;
    f = 98.61;
    printf("student number = %-5d,score = %5.2f\n",i,f);//默认是右对齐，加一个-号是左对齐
    return 0;
}
